<fieldset class="solid">
	<legend>创建补丁</legend>
	<input type="hidden" name="patch.id" value="${(patch.id)!}" />
	<div class="form-group">
		<label>名称</label>
		<input type="text" name="patch.name" value="${(patch.name)!}" />${titleMsg!}
	</div>
	<div class="form-group">
		<label>用户</label>
		<input type="text" name="patch.username" value="${(patch.username)!}" />${usernameMsg!}
	</div>
	<div class="form-group">
		<label>所属模块</label>
		<input type="text" name="patch.modulename" value="${(patch.modulename)!}" />${modulenameMsg!}
	</div>
	<div class="form-group">
		<label>是否专版</label>
		<input type="checkbox" name="patch.special" value="${(patch.special)!}" />
	</div>
	 <div class="form-group">
		<label>适用版本</label>
		<input type="text" name="patch.version" value="${(patch.version)!}" />${versionMsg!}
	</div>
	<div class="form-group">
		<label>描述</label>
		<textarea name="patch.description" cols="80" rows="10">${(patch.description)!}</textarea>
	</div>
	<#if (patch.id)??>
		<div class="form-group">
			<label>补丁下载</label>
			<a href="/patch/download/${(patch.id)!}">补丁下载</a>
		</div> 
    <#else>
		<div class="form-group">
			<label>补丁上传 </label>
			<input type="file" name="patch.fileupload" />${fileMsg!}
		</div>
	</#if> 
	<div class="form-group">
		<label>&nbsp;</label>
		<#if (patch.id)??>
			<button type="submit" class="btn btn-default">保存</button>
		<#else>
			<button type="submit" class="btn btn-default">提交</button>
		</#if>
		<a href="/patch"><button type="submit" class="btn btn-default">返回</button></a>
	</div>
</fieldset>